package org.spring.springboot.app.community.housecost.dao;

import org.apache.ibatis.annotations.Param;
import org.spring.springboot.app.community.housecost.domain.po.CommunityHouseCostPO;
import org.spring.springboot.app.community.housecost.domain.vo.CommunityHouseCostVO;
import org.spring.springboot.app.community.housecost.domain.vo.HouseCostSearchVO;
import org.spring.springboot.app.community.housecost.domain.vo.TaskHouseCostVO;

import java.util.List;

public interface CommunityHouseCostDao {
    int deleteByPrimaryKey(String id);

    int insert(CommunityHouseCostPO record);

    int insertSelective(CommunityHouseCostPO record);

    CommunityHouseCostPO selectByPrimaryKey(String id);

    List<CommunityHouseCostVO> findAll(HouseCostSearchVO searchVo,@Param("pageNum") int pageNum,
                                       @Param("pageSize") int pageSize);

    int updateByPrimaryKeySelective(CommunityHouseCostPO record);

    int updateByPrimaryKey(CommunityHouseCostPO record);


    List<CommunityHouseCostPO> selectHouseCostByCreate(TaskHouseCostVO vo);


    int replaceHouseExpireDay(String houseId);
}